home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.8 / am / ansi2knr.am next >
Encoding:
Text File  |  2005-10-16  |  2.3 KB  |  79 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright (C) 1994, 1995, 1996, 1997, 2001, 2003
  3. ## Free Software Foundation, Inc.
  4.  
  5. ## This program is free software; you can redistribute it and/or modify
  6. ## it under the terms of the GNU General Public License as published by
  7. ## the Free Software Foundation; either version 2, or (at your option)
  8. ## any later version.
  9.  
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. ## GNU General Public License for more details.
  14.  
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  18. ## 02111-1307, USA.
  19.  
  20. ## %ANSI2KNR-DIR% is the directory where ansi2knr is, `' if
  21. ## is the current directory.
  22.  
  23.  
  24. ## ---------- ##
  25. ## ansi2knr.  ##
  26. ## ---------- ##
  27.  
  28. if %?ANSI2KNR-DIR%
  29.  
  30. ANSI2KNR = %ANSI2KNR-DIR%/ansi2knr
  31. %ANSI2KNR-DIR%/ansi2knr:
  32.     cd %ANSI2KNR-DIR% && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
  33.  
  34. else !%?ANSI2KNR-DIR%
  35.  
  36. ## Substitution from AM_C_PROTOTYPES.  This makes it be built only when
  37. ## necessary.
  38. ANSI2KNR = @ANSI2KNR@
  39. ansi2knr: ansi2knr.$(OBJEXT)
  40.     $(LINK) ansi2knr.$(OBJEXT) $(LIBS)
  41. ansi2knr.$(OBJEXT): $(CONFIG_HEADER)
  42.  
  43. endif !%?ANSI2KNR-DIR%
  44.  
  45.  
  46. ## ------------------- ##
  47. ## Cleaning ansi2knr.  ##
  48. ## ------------------- ##
  49.  
  50.  
  51. if !%?ANSI2KNR-DIR%
  52. .PHONY: clean-krextra
  53.  
  54. clean-am: clean-krextra
  55. clean-krextra:
  56. ## Why `clean' and not somewhere else?  Not `mostlyclean' because
  57. ## people usually don't want to recompile this file.  And not
  58. ## `distclean' because of our informal rule: if `make' built it, then
  59. ## `clean' should delete it; if `configure' built it, then `distclean'
  60. ## should remove it (and if the maintainer built it, then
  61. ## maintainer-clean should remove it).
  62.     -rm -f ansi2knr
  63. endif !%?ANSI2KNR-DIR%
  64.  
  65.  
  66.  
  67. ## --------------------------------- ##
  68. ## Cleaning the output of ansi2knr.  ##
  69. ## --------------------------------- ##
  70.  
  71. .PHONY: mostlyclean-kr
  72.  
  73. mostlyclean-am: mostlyclean-kr
  74. mostlyclean-kr:
  75. ## Only delete *_.c when ansi2knr is actually in use, so as to avoid
  76. ## deleting sources that happen to end in "_" after being truncated on a DOS
  77. ## 8.3 filesystem with srcdir==builddir.
  78.     -test "$U" = "" || rm -f *_.c
  79.